home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / launchpadbugs / blueprintbase.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  10.1 KB  |  200 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import lpconstants as lpc
  5. import utils
  6. from lphelper import LateBindingProperty
  7.  
  8. class BlueprintInfo(object):
  9.     
  10.     def __init__(self, priority, spec, title, url, design, delivery, assignee, project, mentorship):
  11.         self._BlueprintInfo__priority = lpc.BLUEPRINT.PRIORITY.get(priority, None)
  12.         self._BlueprintInfo__spec = spec
  13.         self._BlueprintInfo__title = title
  14.         self._BlueprintInfo__url = url
  15.         self._BlueprintInfo__status = lpc.BLUEPRINT.STATUS.get(design, None)
  16.         self._BlueprintInfo__delivery = lpc.BLUEPRINT.DELIVERY.get(delivery, None)
  17.         self._BlueprintInfo__assignee = assignee
  18.         self._BlueprintInfo__project = project
  19.         self._BlueprintInfo__mentorship = mentorship
  20.  
  21.     
  22.     def url(self):
  23.         return self._BlueprintInfo__url
  24.  
  25.     url = property(url)
  26.     
  27.     def spec(self):
  28.         return self._BlueprintInfo__spec
  29.  
  30.     spec = property(spec)
  31.     
  32.     def title(self):
  33.         return self._BlueprintInfo__title
  34.  
  35.     title = property(title)
  36.     
  37.     def priority(self):
  38.         return self._BlueprintInfo__priority
  39.  
  40.     priority = property(priority)
  41.     
  42.     def status(self):
  43.         return self._BlueprintInfo__status
  44.  
  45.     status = property(status)
  46.     design = definition = status
  47.     
  48.     def delivery(self):
  49.         return self._BlueprintInfo__delivery
  50.  
  51.     delivery = property(delivery)
  52.     implementation = delivery
  53.     
  54.     def assignee(self):
  55.         return self._BlueprintInfo__assignee
  56.  
  57.     assignee = property(assignee)
  58.     
  59.     def project(self):
  60.         return self._BlueprintInfo__project
  61.  
  62.     project = property(project)
  63.     series = product = project
  64.     
  65.     def mentorship(self):
  66.         return self._BlueprintInfo__mentorship
  67.  
  68.     mentorship = property(mentorship)
  69.     
  70.     def __repr__(self):
  71.         return '<BlueprintInfo %s>' % self.spec
  72.  
  73.     
  74.     def __str__(self):
  75.         if not self.assignee:
  76.             pass
  77.         return "[blueprint '%s' %s: %s]" % (self.spec, '', self.priority)
  78.  
  79.  
  80.  
  81. class LPBluePrint(object):
  82.     
  83.     def __init__(self, url, connection):
  84.         self._LPBluePrint__url = utils.valid_lp_url(url, utils.BLUEPRINT)
  85.         self._connection = connection
  86.  
  87.     
  88.     def url(self):
  89.         return self._LPBluePrint__url
  90.  
  91.     url = property(url)
  92.     
  93.     def __repr__(self):
  94.         return '<BlueprintInfo %s>' % self.spec
  95.  
  96.     
  97.     def __str__(self):
  98.         if not self.assignee:
  99.             pass
  100.         return "[blueprint '%s' %s: %s]" % (self.spec, '', self.priority)
  101.  
  102.     
  103.     def get_spec(self):
  104.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  105.  
  106.     spec = LateBindingProperty(get_spec, doc = 'returns short name of a blueprint')
  107.     
  108.     def get_title(self):
  109.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  110.  
  111.     title = LateBindingProperty(get_title, doc = 'returns title of a blueprint')
  112.     
  113.     def get_priority(self):
  114.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  115.  
  116.     priority = LateBindingProperty(get_priority, doc = 'returns priority of a blueprint')
  117.     
  118.     def get_status(self):
  119.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  120.  
  121.     status = LateBindingProperty(get_status, doc = 'returns status of a blueprint')
  122.     design = definition = status
  123.     
  124.     def get_delivery(self):
  125.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  126.  
  127.     delivery = LateBindingProperty(get_delivery, doc = 'returns state of implementation of a blueprint')
  128.     implementation = delivery
  129.     
  130.     def get_assignee(self):
  131.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  132.  
  133.     assignee = LateBindingProperty(get_assignee, doc = 'returns assignee of a blueprint')
  134.     
  135.     def get_drafter(self):
  136.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  137.  
  138.     drafter = LateBindingProperty(get_drafter, doc = 'returns drafter of a blueprint')
  139.     
  140.     def get_approver(self):
  141.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  142.  
  143.     approver = LateBindingProperty(get_approver, doc = 'returns approver of a blueprint')
  144.     
  145.     def get_project(self):
  146.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  147.  
  148.     project = LateBindingProperty(get_project, doc = 'returns project a blueprint')
  149.     product = project
  150.     
  151.     def get_mentors(self):
  152.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  153.  
  154.     mentorship = LateBindingProperty(get_mentors, doc = 'returns available mentors of a blueprint')
  155.     
  156.     def get_overview(self):
  157.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  158.  
  159.     overview = LateBindingProperty(get_overview, doc = 'returns overview of a blueprint')
  160.     
  161.     def get_full_spec(self):
  162.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  163.  
  164.     full_spec = LateBindingProperty(get_full_spec, doc = 'returns url to the full spec')
  165.     
  166.     def get_whiteboard(self):
  167.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  168.  
  169.     whiteboard = LateBindingProperty(get_whiteboard, doc = 'returns whiteboard of a blueprint')
  170.     
  171.     def get_sprints(self):
  172.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  173.  
  174.     sprints = LateBindingProperty(get_sprints, doc = 'returns sprints related to a blueprint')
  175.     
  176.     def get_subscribers(self):
  177.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  178.  
  179.     subscribers = LateBindingProperty(get_subscribers, doc = 'returns subscribers to a blueprint')
  180.     
  181.     def get_subscriptions_category(self, type):
  182.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  183.  
  184.     
  185.     def get_lifecycle(self):
  186.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  187.  
  188.     lifecycle = LateBindingProperty(get_lifecycle, doc = 'returns lifecycle info of a blueprint')
  189.     
  190.     def get_related_bugs(self):
  191.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  192.  
  193.     related_bugs = LateBindingProperty(get_related_bugs, doc = 'returns related bugs to a blueprint')
  194.     
  195.     def get_feedback_request(self):
  196.         raise NotImplementedError, 'this method must be implemented by a concrete subclass'
  197.  
  198.     feedback_request = LateBindingProperty(get_feedback_request, doc = 'returns requested feedbacks')
  199.  
  200.